<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			// 定义一个数组
			var arr = ['abc', 100];
			for(var i = 0; i < arr.length; i++){
				console.log(arr[i]);
			}
			for(var key in arr){
				console.log(arr[key]);
			}
		</script>
	</head>
	<body>
		<h1>循环</h1>
	</body>
</html>
